n = int(input("请输入几行："))

"""
正三角
row = 1
while row <= n:
    print("*"*row)
    row+=1
"""

#倒三角
row = n
while row >= 1:
    print("*"*row)
    row-=1